package juc;

import org.junit.Test;

/**
 * 八锁问题
 *
 * @author liweimin
 * @date 2021/5/25 19:05
 * @since
 */
public class Lock8Test {
    public static final Number number = new Number();

    @Test
    public void test1(){

    }
}

class Number {
    public synchronized void getOne() {
        System.out.println("One");
    }

    public synchronized void getTwo() {
        System.out.println("Two");
    }
}
